# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-testfixtures
pkgver=6.14.1
pkgrel=0
pkgdesc="A collection of helpers and mock objects for unit tests and doc tests"
url="https://github.com/Simplistix/testfixtures"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-sphinx"
checkdepends="py3-pytest py3-sybil"
source="https://pypi.python.org/packages/source/t/testfixtures/testfixtures-$pkgver.tar.gz"
options="!check" # Broken tests https://github.com/Simplistix/testfixtures/issues/134
builddir="$srcdir/testfixtures-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0da31d5e382984c22ada846c07570d4a179ba819005dd29891e551b99190fabaaf17174456f7ed4864e9c4aa25f7d5d8b86aa123b4628328610d6930c9c5d6bd  testfixtures-6.14.1.tar.gz"
